package com.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 附件表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_admin_file")
@ApiModel(value = "AdminFile对象", description = "附件表")
public class AdminFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("file_id")
    private Long fileId;

    @ApiModelProperty("附件名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("附件大小（字节）")
    @TableField("size")
    private Long size;

    @ApiModelProperty("创建人ID")
    @TableField("create_user_id")
    private Long createUserId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("文件真实路径")
    @TableField("path")
    private String path;

    @ApiModelProperty("文件类型,file,img")
    @TableField("file_type")
    private String fileType;

    @ApiModelProperty("1 本地 2 阿里云oss")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("来源 0 默认 1 admin 2 crm 3 work 4 oa 5 进销存 6 hrm")
    @TableField("source")
    private Integer source;

    @ApiModelProperty("1 公有访问 0 私有访问")
    @TableField("is_public")
    private Integer isPublic;

    @ApiModelProperty("批次id")
    @TableField("batch_id")
    private String batchId;


}
